package com.yunhe.dtu.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;

import java.math.BigDecimal;

/**
 * @ClassName Data
 * @Description TODO
 * @Author HeTao
 * @Date 2020/12/18 11:38
 * @Version 1.0
 **/
public class Data extends BaseRowModel {

    @ExcelProperty(value = "表计id",index = 0)
    private String sid;

    @ExcelProperty(value = "功率",index = 1)
    private BigDecimal p;

    @ExcelProperty(value = "A相电压",index = 2)
    private BigDecimal ua;

    @ExcelProperty(value = "A相电流",index = 3)
    private BigDecimal  ia;

    @ExcelProperty(value = "B相电流",index = 4)
    private BigDecimal  ib;

    @ExcelProperty(value = "C相电流",index = 5)
    private BigDecimal  ic;

    @ExcelProperty(value = "总电度",index = 6)
    private BigDecimal  e;

    @ExcelProperty(value = "峰电度",index = 7)
    private BigDecimal  e_peak;

    @ExcelProperty(value = "平电度",index = 8)
    private BigDecimal  e_flat;

    @ExcelProperty(value = "谷电度",index = 9)
    private BigDecimal  e_valley;

    @ExcelProperty(value = "功率因数",index = 10)
    private BigDecimal  f;

    @ExcelProperty(value = "计算总电度",index = 11)
    private BigDecimal  totalE;

    @ExcelProperty(value = "数据更新时间",index = 12)
    private String update_time;

    public String getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }

    public BigDecimal getTotalE() {
        return totalE;
    }

    public void setTotalE(BigDecimal totalE) {
        this.totalE = totalE;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public BigDecimal getP() {
        return p;
    }

    public void setP(BigDecimal p) {
        this.p = p;
    }

    public BigDecimal getUa() {
        return ua;
    }

    public void setUa(BigDecimal ua) {
        this.ua = ua;
    }

    public BigDecimal getIa() {
        return ia;
    }

    public void setIa(BigDecimal ia) {
        this.ia = ia;
    }

    public BigDecimal getIb() {
        return ib;
    }

    public void setIb(BigDecimal ib) {
        this.ib = ib;
    }

    public BigDecimal getIc() {
        return ic;
    }

    public void setIc(BigDecimal ic) {
        this.ic = ic;
    }

    public BigDecimal getE() {
        return e;
    }

    public void setE(BigDecimal e) {
        this.e = e;
    }

    public BigDecimal getE_peak() {
        return e_peak;
    }

    public void setE_peak(BigDecimal e_peak) {
        this.e_peak = e_peak;
    }

    public BigDecimal getE_flat() {
        return e_flat;
    }

    public void setE_flat(BigDecimal e_flat) {
        this.e_flat = e_flat;
    }

    public BigDecimal getE_valley() {
        return e_valley;
    }

    public void setE_valley(BigDecimal e_valley) {
        this.e_valley = e_valley;
    }

    public BigDecimal getF() {
        return f;
    }

    public void setF(BigDecimal f) {
        this.f = f;
    }

    @Override
    public String toString() {
        return "Data{" +
                "sid='" + sid + '\'' +
                ", p=" + p +
                ", ua=" + ua +
                ", ia=" + ia +
                ", ib=" + ib +
                ", ic=" + ic +
                ", e=" + e +
                ", e_peak=" + e_peak +
                ", e_flat=" + e_flat +
                ", e_valley=" + e_valley +
                ", f=" + f +
                '}';
    }

    public Data() {
    }
}
